<?php include_once __DIR__.'/../inc/userhead.html';?>
<?php include_once __DIR__.'/../inc/usermenu.html';?>
<!--右面板-->
  <div class="main_panel">
    <!--头部-->
    <div class="panel_head">
      <ul class="title">
        <li><a href="javascript:;">交易记录</a></li>
      </ul>
    </div>
    <!--头部-->
    <div style="height:25px"></div>
    <!--内容-->
     <div class="panel_list">
         <?php if($list):?>
        <table class="share_tab">
            <tr class="thead">
                <th>订单编号</th>
                <th>类型</th>
                <th>金额</th>
                <th>手续费</th>
                <th>备注</th>
                <th>时间</th>
            </tr>

            <?php foreach($list as $key => $value):?>
                <tr>
                    <th><?=$value['order_no']?></th>
                    <th><?=$value['type']?></th>
                    <th><?=$value['show_money']?></th>
                    <th><?=$value['fee']?></th>
                    <th><?=$value['note']?></th>
                    <th><?=$value['create_time']?></th>
                </tr>
            <?php endforeach;?>

        </table>
        <!--分页-->
        <div class="plan_pager fr">
          <div class="pageing" id='page'>
          </div>
        </div>
        <!--分页-->
       <?php else:?>
           <p class="buyNull">还没有记录哦！</p>
      <?php endif;?>
	 </div>
      </div>
     <!--内容-->
  </div>
  <!--右面板-->
</div>
<script>
    layui.use(['laypage'], function(){
        var laypage = layui.laypage;
        //总页数大于页码总数
        laypage.render({
          elem: 'page'
          ,count:<?=$page_count?>  //数据总数
          ,curr:<?=$page?>
          ,limit:10
          ,jump: function(obj,first){
            //首次不执行
            if(!first){
                var o = GetRequest();
                    o.page = obj.curr;
                    o.url  = '/user/collect';
                window.location.href = createUrl(o);
            }
          }
        });
    });
</script>

<?php include_once __DIR__.'/../inc/foot.html';?>
